package entity

import (
	"kop/pb"
	"time"
)

// 战报
type ConquerReport struct {
	ID           int
	RoleID       int32 `gorm:"index"` // 被攻击方
	ServerID     int32
	Type         pb.ConquerType `gorm:"type:smallint"`
	WinNum       int32          // 击败船长数量
	Attacker     int32
	Photo        int32 `gorm:"type:smallint"`
	Level        int32
	Power        int64
	CaptainID    int32 // 带队船长
	Points       int32
	Win          bool
	AttackerName string `gorm:"size:255"`
	DefenderName string `gorm:"size:255"`
	CreatedAt    time.Time
	UpdatedAt    time.Time
}
